package com.ksana.util;

public class ClassUtil {
    public static ClassLoader getClassLoader() {
        ClassLoader classLoader = null;

        // 检测当前线程中是否存在类加载器
        classLoader = Thread.currentThread().getContextClassLoader();

        if (classLoader == null) {
            classLoader = ClassUtil.class.getClassLoader();
        }

        return classLoader;
    }
}
